import React, { Component } from 'react';
import { withRouter } from 'react-router-dom'
class MyHeader extends Component {
    render() {
        return (
            <div className='header'>
                <div className='icon'>
                    <span className='iconfont icon-fanhuijiantou'  onClick={()=>{this.props.history.goBack()}}></span>
                    <span className='line-y'>|</span>
                    <span className='iconfont icon-shouye' onClick={()=>{ this.props.history.push('/index/home')}}></span>
                </div>
                <div className="title">商品详情</div>
            </div>
        );
    }
}

export default withRouter(MyHeader);